mirror of
https://github.com/langgenius/ruby-sdk.git
synced 2026-07-18 12:25:31 -04:00
Allow overwrite the base_url.
This commit is contained in:
+2
-2
@@ -3,9 +3,9 @@
|
||||
require_relative "client/version"
|
||||
|
||||
class DifyClient
|
||||
def initialize(api_key)
|
||||
def initialize(api_key, base_url = "https://api.dify.ai/v1")
|
||||
@api_key = api_key
|
||||
@base_url = "https://api.dify.ai/v1"
|
||||
@base_url = base_url
|
||||
end
|
||||
|
||||
def message_feedback(message_id, rating, user)
|
||||
|
||||
Reference in New Issue
Block a user