Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add CRD Application #197

Merged
merged 1 commit into from
Nov 29, 2023
Merged

feat: add CRD Application #197

merged 1 commit into from
Nov 29, 2023

Conversation

Abirdcfly
Copy link
Collaborator

@Abirdcfly Abirdcfly commented Nov 9, 2023

What type of PR is this?

/kind feature

What this PR does / why we need it

Which issue(s) this PR fixes

Fixes #132

Special notes for your reviewer

https://shimo.im/docs/vVqRM4yWXWUXlj3y

curl -XPOST http://172.16.30.104:8080/chat --data '{"query":"hi, how are you?","response_mode":"blocking","conversion_id":"","app_name":"base-chat-english-teacher", "app_namespace":"arcadia"}'

{"conversion_id":"7c982664-b9f9-48e9-ac3b-494c14f0fcfa","message_id":"","message":"Greetings, how do you fare?","created_at":"0001-01-01T00:00:00Z"}

CleanShot 2023-11-24 at 14 41 45
source: https://github.com/Abirdcfly/llm-examples/blob/main/chatbot.py
online url: http://172.22.96.167:8502/

Signed-off-by: Abirdcfly <fp544037857@gmail.com>
return app, ctrl.Result{}, nil
}
}
toOutputNodeNext = len(node.NextNodeName)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe combine this two for _,node := range app.Spec.Nodes together ?

// 7. should not have cycle TODO
// 8. nodeName should be unique
func (r *ApplicationReconciler) validateNodes(ctx context.Context, log logr.Logger, app *arcadiav1alpha1.Application) (*arcadiav1alpha1.Application, ctrl.Result, error) {
var input, output int
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a strict rule for app developers. We need a document later.

limitations under the License.
*/

package zhipuai
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Greate! #79 This issue can be closed as well. Right ? @Abirdcfly

"github.com/kubeagi/arcadia/pkg/llms/zhipuai"
)

var _ llms.LLM = (*ZhipuLLM)(nil)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since our worker provides openai-compatible apis , we need to support openai llm ASAP

Copy link
Collaborator

@bjwswang bjwswang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Abirdcfly Nice job!

We need to support

  • knowledgebase as a node
  • openai as a llm

Then we shall have a complete llmops! ⭐

@nkwangleiGIT
Copy link
Contributor

track remaining issue using #308

@nkwangleiGIT nkwangleiGIT merged commit 432725a into kubeagi:main Nov 29, 2023
8 checks passed
@Abirdcfly Abirdcfly deleted the app branch November 29, 2023 07:30
nkwangleiGIT added a commit to nkwangleiGIT/arcadia that referenced this pull request Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Define CRD Application
4 participants